<template>
	<view class="ucenter">
		<view class="menu-lists">
			<view class="item" @click="minerList">
				<view class="icon">
					<image mode="widthFix" src="../../static/icon/home_app_app.png"></image>
				</view>
				<view class="name muti">
					<view class="main-name">我的矿机</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="setting()">
				<view class="icon">
					<view class="iconfont icon-08"></view>
				</view>
				<view class="name muti">
					<view class="main-name">钱包管理</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="transferLog()">
				<view class="icon">
					<view class="iconfont icon-liushui"></view>
				</view>
				<view class="name muti">
					<view class="main-name">账单明细</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="sharePost()">
				<view class="icon">
					<view class="iconfont icon-wodeyaoqingma"></view>
				</view>
				<view class="name muti">
					<view class="main-name">邀请海报</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="inviteIndex()">
				<view class="icon">
					<view class="iconfont icon-iconfonticon-xitong"></view>
				</view>
				<view class="name muti">
					<view class="main-name">我的邀请</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item-divider"></view>
			<view class="item" @click="aboutUs">
				<view class="icon">
					<view class="iconfont icon-guanyuwomen"></view>
				</view>
				<view class="name muti">
					<view class="main-name">关于我们</view>
					<view class="sub-name">
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="version()">
				<view class="icon">
					<view class="iconfont icon-jianchagengxin"></view>
				</view>
				<view class="name muti">
					<view class="main-name">检查更新</view>
					<view class="sub-name">
						<view class="text">{{versionName}}</view>
						<view class="icon">
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import config from "@/utils/request/config.js"
	export default {
		data() {
			return {
				versionName: "",
			}
		},
		onLoad() {
			this.versionName = config.versionName;
		},
		methods: {
			async inviteIndex() {
				uni.navigateTo({
					url: "../Invite/index"
				})
			},
			minerList() {
				uni.navigateTo({
					url: "miner/miner-list"
				})
			},
			setting() {
				uni.navigateTo({
					url: "setting/index"
				})
			},
			sharePost() {
				uni.navigateTo({
					url: "../Invite/share-app"
				})
			},
			version(){
				uni.navigateTo({
					url:"../version"
				})
			},
			aboutUs() {
				uni.navigateTo({
					url: "../about-us"
				})
			},
			transferLog(){
				uni.navigateTo({
					url:"currency/index"
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #18142F;
	}

	view {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
	}
</style>
